package com.example.fresheveryday.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author ll
 * @since 2023-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品名
     */
    private String name;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 商品详情
     */
    private String detail;

    /**
     * 图片URL
     */
    @TableField("imgUrl")
    private String imgurl;

    /**
     * 商品单价
     */
    private BigDecimal price;

    /**
     * 商品单位
     */
    private String unit;

    /**
     * 商品库存
     */
    private Integer quantity;

    /**
     * 商品类型id
     */
    @TableField("categoryId")
    private Integer categoryid;

    /**
     * 上架时间
     */
    @TableField("shelfTime")
    private Date shelftime;

    /**
     * 浏览量
     */
    @TableField("viewCount")
    private Integer viewcount;

    /**
     * 销量
     */
    @TableField("saleCount")
    private Integer salecount;


}
